//
//  JLCFRefreshButton.h
//  QTZ
//
//  Created by ski on 2017/8/15.
//  Copyright © 2017年 ski. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^TouchUpInside)(void);

@interface JLCFRefreshButton : UIView
//背景颜色
@property (nullable, nonatomic, copy) UIColor *backgroundColor;
//按下的颜色
@property (nullable, nonatomic, copy) UIColor *touchDownColor;


//必须使用此初始化方法
- (nonnull instancetype)initWithFrame:(CGRect)frame;

- (void)handleBtnWithBlock:(nullable TouchUpInside)block;

- (void)reset;

//设置btn
- (void)setLoadingColor:(nullable UIColor *)color;
- (void)setTitle:(nullable NSString *)title forState:(UIControlState)state;
- (void)setTitleColor:(nullable UIColor *)color forState:(UIControlState)state;
- (void)setTitleShadowColor:(nullable UIColor *)color forState:(UIControlState)state;
- (void)setImage:(nullable UIImage *)image forState:(UIControlState)state;
- (void)setBackgroundImage:(nullable UIImage *)image forState:(UIControlState)state;
- (void)setAttributedTitle:(nullable NSAttributedString *)title forState:(UIControlState)state;

@end
